import type {AnyObject,MethodType} from './types'

//定义请求基类的接口
export interface RequestParams {
    url:string,
    data?:AnyObject,
    method?:MethodType,
    headerparams?:string
}
//分页page和limit的接口
export interface PageLimitInterface  {
    page:number,
    limit:number
}
//定义用户信息的接口
export interface UserInfoInterface{
    nickname:string,
    avatar:string,
    [propsName:string]:any
}
/* 定义获取评论列表的接口 */
export interface CommentsListInterface extends PageLimitInterface {
    courseId?: string
}
//提交评论的接口
export interface AddCommentInterface{
    content:string,
    courseId:string,
    teacherId:string
}